package com.example.kugou.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 专辑
 */
@ApiModel("专辑实体类")
public class Album {
    /**
     * 专辑id
     */
    @ApiModelProperty("专辑编号")
    private Integer aid;
    /**
     * 专辑名称
     */
    @ApiModelProperty("专辑名称")
    private String aname;
    /**
     * 外键  对应歌手
     */
    @ApiModelProperty("对应歌手id")
    private Integer sw2id;
    /**
     * 对应歌曲
     */
    @ApiModelProperty("对应歌曲id")
    private Integer swid;
    /**
     * 封面照片路径
     */
    @ApiModelProperty("专辑封面pic路径")
    private String apic;

    private Singer singer;

    private List<Sing> sings;

    public Singer getSinger() {
        return singer;
    }

    public void setSinger(Singer singer) {
        this.singer = singer;
    }

    public List<Sing> getSings() {
        return sings;
    }

    public void setSings(List<Sing> sings) {
        this.sings = sings;
    }

    public Album(Integer aid, String aname, Integer sw2id, Integer swid, String apic) {
        this.aid = aid;
        this.aname = aname;
        this.sw2id = sw2id;
        this.swid = swid;
        this.apic = apic;
    }

    public Album() {
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public Integer getSw2id() {
        return sw2id;
    }

    public void setSw2id(Integer sw2id) {
        this.sw2id = sw2id;
    }

    public Integer getSwid() {
        return swid;
    }

    public void setSwid(Integer swid) {
        this.swid = swid;
    }

    public String getApic() {
        return apic;
    }

    public void setApic(String apic) {
        this.apic = apic;
    }

    @Override
    public String toString() {
        return "Album{" +
                "aid=" + aid +
                ", aname='" + aname + '\'' +
                ", sw2id=" + sw2id +
                ", swid=" + swid +
                ", apic='" + apic + '\'' +
                '}';
    }
}
